home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / textureManipulation / threeTintedTextures.s3d < prev   
Text File  |  2000-07-13  |  1KB  |  70 lines

  1. #VRML V2.0 utf8
  2.  
  3. Transform {
  4.     translation -5 0 0
  5.     children Shape {
  6.         appearance Appearance { 
  7.             material Material { diffuseColor 1 1 1 } 
  8.             texture  TintedImageTexture {
  9.                 url "../images/shared/sky.gif"
  10.                 tintColor 1 0 0
  11.             }
  12.         }
  13.         geometry Box {}
  14.     }
  15. }
  16. Transform {
  17.     translation 0 0 0
  18.     children Shape {
  19.         appearance Appearance { 
  20.             material Material { diffuseColor 1 1 1 } 
  21.             texture  DEF MIDDLE_TINTED_TEXTURE TintedImageTexture {
  22.                 url "../images/shared/sky.gif"
  23.                 tintColor 1 1 1
  24.             }
  25.         }
  26.         geometry Box {}
  27.     }
  28. }
  29. Transform {
  30.     translation 5 0 0
  31.     children Shape {
  32.         appearance Appearance { 
  33.             material Material { diffuseColor 1 1 1 } 
  34.             texture  TintedImageTexture {
  35.                 url "../images/shared/sky.gif"
  36.                 tintColor .5 .5 0
  37.             }
  38.         }
  39.         geometry Box {}
  40.     }
  41. }
  42. DEF TIME_SENSOR TimeSensor {
  43.     loop TRUE
  44.     cycleInterval 5
  45. }
  46. DEF MIDDLE_TINT_INTERP ColorInterpolator {
  47.     key [ 0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1 ]
  48.     keyValue [    
  49.     1 0 0,
  50.     
  51.     1 .5 1,
  52.     1 .5 1,
  53.     
  54.     1 1 0,
  55.     1 1 0,
  56.  
  57.     0 1 1,
  58.     0 1 1,
  59.     
  60.     1 1 1,
  61.     1 1 1,
  62.     
  63.     1 0 0,
  64.     1 0 0,
  65.     ]
  66.     
  67. }
  68. ROUTE TIME_SENSOR.fraction TO MIDDLE_TINT_INTERP.fraction
  69. ROUTE MIDDLE_TINT_INTERP.value TO MIDDLE_TINTED_TEXTURE.tintColor
  70.